// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import VueAxios from 'vue-axios'
import auth from "./router/auth";
import store from './store/store.js'
Vue.prototype.$store = store;

//应用axios插件
Vue.use(auth, VueAxios, axios)
// 配置后端路由
axios.defaults.baseURL = 'http://127.0.0.1:8000'
//将axios挂在全局上
Vue.prototype.$axios = axios
//关闭vue自带提示
Vue.config.productionTip = true

/* eslint-disable no-new */
new Vue({
  el: '#app',
  // store,
  auth,
  //一定要注入到vue的实例对象上
  router,
  render:h =>h(App),
  components: { App },
  template: '<App/>'
})


